<include file="../Public/inleft" />
<div id="main"> <include file="../Public/main_nav" />
  <div id="main_content">
    <form method="post" action="__APP__/index/cpwding" style="float:left; margin-left:100px; display:inline;">
      <input type="hidden" id="id" name="id" value="{@mid}" />
      <table width="500" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td>登录名：</td>
          <td><input type="text" size="15" name="loginname" id="loginname2" value="{$vo.loginname}"/></td>
        </tr>
        <tr>
          <td>新密码：</td>
          <td><input type="password" size="15" name="password" id="password2" value="{$vo.password}"/></td>
        </tr>

        <tr>
          <td>&nbsp;</td>
          <td>==================</td>
        </tr>
        <tr>
          <td width="120">姓名：</td>
          <td><input type="text" size="15" name="bname" id="bname" value="{$vo.bname}"/></td>
        </tr>
        <tr>
          <td>性别：</td>
          <td><input type="radio" name="bsex" id="bsex1" value="1" />
            <label for="sex1">男</label>
            <input type="radio" name="bsex" id="bsex2" value="2" />
            <label for="sex2"> 女</label></td>
        </tr>
        <tr>
          <td>年龄：</td>
          <td><input type="text" size="10"  name="bage"  id="bage" value="{$vo.bage}"/></td>
        </tr>
        <tr>
          <td>住址：</td>
          <td><input type="text" size="40" name="baddress" id="baddress" value="{$vo.baddress}"/></td>
        </tr>
        <tr>
          <td>家长姓名：</td>
          <td><input type="text" size="15" name="fatherName" id="fatherName" value="{$vo.fatherName}"/></td>
        </tr>
        <tr>
          <td>家长联系电话：</td>
          <td><input type="text" size="15" name="tel1" id="tel1" value="{$vo.tel1}"/></td>
        </tr>
        <tr>
          <td>固定电话：</td>
          <td><input type="text" size="15" name="tel2" id="tel2" value="{$vo.tel2}"/></td>
        </tr>
        <tr>
          <td>手机：</td>
          <td><input type="text" size="15" name="tel3" id="tel3" value="{$vo.tel3}"/></td>
        </tr>
        <tr>
          <td>幼儿园名称：</td>
          <td><input type="text"  name="kname" id="kname" value="{$vo.kname}"/></td>
        </tr>
        <tr>
          <td>幼儿园班级：</td>
          <td><input type="text" size="5" name="kclass" id="kclass" value="{$vo.kclass}" /></td>
        </tr>
        <tr>
          <td>幼儿园地址：</td>
          <td><input type="text" size="40"  name="kaddress" id="kaddress" value="{$vo.kaddress}"/></td>
        </tr>
        <tr>
          <td> 备注：</td>
          <td><textarea name="note" cols="30" rows="4" id="note">{$vo.note}</textarea></td>
        </tr>
        <tr>
          <td>&nbsp;</td>
          <td><input type="submit" name="button" id="button" value="更新资料" /></td>
        </tr>
      </table>
    </form>
  </div>
</div>
</div>
<include file="../Public/right" /> <include file="../Public/footer" />

<script type="text/javascript">
	
$(document).ready(function(){
    //alert("请以真实信息注册，奖品回馈以注册信息为准！");
	$('#bsex{$vo.bsex}').attr('checked','checked');

	$.formValidator.initConfig({validatorgroup:"2",autotip:true,onerror:function(msg){alert(msg)}});
//	$("#pname").formValidator({onshow:"请输入患者姓名",onfocus:"患者姓名必须输入",oncorrect:"恭喜你,通过了"}).inputValidator({min:2, max:20,onerror:"你输入的患者姓名长度不正确,请确认"});
	$("#loginname2").formValidator({validatorgroup:"2",onshow:"请输入登陆名",onfocus:"登陆名必须输入",oncorrect:"恭喜你,通过了"}).inputValidator({min:1, max:20,onerror:"你输入登陆名长度不正确,请确认"});
	$("#password2").formValidator({validatorgroup:"2",onshow:"请输入密码",onfocus:"密码必须输入",oncorrect:"恭喜你,通过了"}).inputValidator({min:1, max:20,onerror:"你输入的密码长度不正确,请确认"});
	$("#password22").formValidator({validatorgroup:"2",onshow:"请输入重复密码",onfocus:"重复密码必须输入",oncorrect:"恭喜你,通过了"}).inputValidator({min:1, max:20,onerror:"你输入的重复密码长度不正确,请确认"});
	$("#bname").formValidator({validatorgroup:"2",onshow:"请输入姓名",onfocus:"姓名必须输入",oncorrect:"恭喜你,通过了"}).inputValidator({min:1, max:20,onerror:"你输入的姓名长度不正确,请确认"});
//	$("input:radio[name='bsex']").formValidator({relativeid:"bsex1",onshow:"请选择报卡类别",onfocus:"报卡类别必须选择",oncorrect:"恭喜你,通过了"}).inputValidator({min:1,onerror:"你的报卡类别选择不正确,请确认"});
	$("input:radio[name='bsex']").formValidator({validatorgroup:"2",relativeid:"bsex1",tipid:"bsexTip",tipcss:{"left":"60px"},onshow:"请选择性别",onfocus:"性别必须选择",oncorrect:"恭喜你,通过了"}).inputValidator({min:1,onerror:"你的性别选择不正确,请确认"});
	$("#bage").formValidator({validatorgroup:"2",onshow:"请输入年龄",onfocus:"年龄必须输入",oncorrect:"恭喜你,通过了"}).inputValidator({min:1, max:20,onerror:"你输入的年龄长度不正确,请确认"});
	$("#baddress").formValidator({validatorgroup:"2",onshow:"请输入住址",onfocus:"住址必须输入",oncorrect:"恭喜你,通过了"}).inputValidator({min:1, max:60,onerror:"你输入的住址长度不正确,请确认"});
	$("#fatherName").formValidator({validatorgroup:"2",onshow:"请输入家长姓名",onfocus:"家长姓名必须输入",oncorrect:"恭喜你,通过了"}).inputValidator({min:1, max:20,onerror:"你输入的家长姓名长度不正确,请确认"});
	$("#tel1").formValidator({validatorgroup:"2",onshow:"请输入家长联系电话",onfocus:"家长联系电话必须输入",oncorrect:"恭喜你,通过了"}).inputValidator({min:1, max:20,onerror:"你输入的家长联系电话长度不正确,请确认"});
	$("#tel2").formValidator({validatorgroup:"2",onshow:"请输入固定电话",onfocus:"固定电话必须输入",oncorrect:"恭喜你,通过了"}).inputValidator({min:1, max:20,onerror:"你输入的固定电话长度不正确,请确认"});
	//$("#tel3").formValidator({validatorgroup:"2",onshow:"请输入手机联系电话",onfocus:"手机必须输入",oncorrect:"恭喜你,通过了"}).inputValidator({min:1, max:20,onerror:"你输入手机长度不正确,请确认"});
	$("#kname").formValidator({validatorgroup:"2",onshow:"请输入幼儿园名称",onfocus:"幼儿园名称必须输入",oncorrect:"恭喜你,通过了"}).inputValidator({min:1, max:20,onerror:"你输入的幼儿园名称长度不正确,请确认"});
	$("#kclass").formValidator({validatorgroup:"2",onshow:"请输入幼儿园班级",onfocus:"幼儿园班级必须输入",oncorrect:"恭喜你,通过了"}).inputValidator({min:1, max:20,onerror:"你输入的幼儿园班级长度不正确,请确认"});
	//$("#kaddress").formValidator({validatorgroup:"2",onshow:"请输入幼儿园地址",onfocus:"幼儿园地址必须输入",oncorrect:"恭喜你,通过了"}).inputValidator({min:1, max:20,onerror:"你输入幼儿园地址长度不正确,请确认"});
//	$("#note").formValidator({onshow:"请输入登陆名",onfocus:"登陆名必须输入",oncorrect:"恭喜你,通过了"}).inputValidator({min:2, max:20,onerror:"你输入登陆名长度不正确,请确认"});
});	
</script>


